<?php

namespace ApiBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * CompanyEvent
 *
 * @ORM\Table(name="company_event", options={"comment":"企业事件表"})
 * @ORM\Entity
 */
class CompanyEvent
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var \ApiBundle\Entity\Company
     *
     * @ORM\ManyToOne(targetEntity="ApiBundle\Entity\Company")
     * @ORM\JoinColumn(name="company_id", referencedColumnName="id")
     */
    private $company;

    /**
     * @var string
     *
     * @ORM\Column(name="type", type="smallint", options={"default":1, "comment":"事件类型: 1奖励事件 2一般事件 3不良事件"})
     */
    private $type;

    /**
     * @var string
     *
     * @ORM\Column(name="company_event_content", type="text", options={"comment":"事件内容"})
     */
    private $companyEventContent;

}
